<?php
/**
 * Author: Administrator
 * Date: 2022/7/23 2:02
 */

namespace DesignPatterns\Behavioral\State;


class OrderController
{
    public function shipAction($id) {
        $order = OrderFactory::getOrder($id);
        $order->shipOrder();
    }

    public function completeAction($id) {
        $order = OrderFactory::getOrder($id);
        $order->completeOrder();
    }

}